gl renderer: Increase offscreen texture size
authorTimm Bäder <mail@baedert.org>
Fri, 16 Feb 2018 17:00:06 +0000 (18:00 +0100)
committerTimm Bäder <mail@baedert.org>
Fri, 16 Feb 2018 17:00:06 +0000 (18:00 +0100)
This fixes blurry checkbutton marks in hidpi setups, but breaks button
hover effects. That's another problem.

gsk/gl/gskglrenderer.c

index 51cd61ee0ea95e3d9c012a243c9e0432cadeeee9..f72fdc3076e8426353f0d8e897fb36695913d6e1 100644 (file)
@@ -2167,8 +2167,8 @@ add_offscreen_ops (GskGLRenderer   *self,
                    gboolean        *is_offscreen,
                    gboolean         force_offscreen)
 {
-  const float width = max_x - min_x;
-  const float height = max_y - min_y;
+  const float width = (max_x - min_x) * self->scale_factor;
+  const float height = (max_y - min_y) * self->scale_factor;
   int render_target;
   int prev_render_target;
   RenderOp op;